package com.zang.blogz.exception;


import com.zang.blogz.constant.CommonConstant;
import lombok.AllArgsConstructor;
import lombok.Getter;



/**
 * 文件操作异常
 *
 * @author yezhiqiu
 * @date 2021/07/27
 */
@Getter
@AllArgsConstructor
public class BizException extends RuntimeException {

   private  Integer code ;

    /**
     * 错误信息
     */
    private final String message;

    public BizException(String message) {
        this.code = CommonConstant.SC_INTERNAL_SERVER_ERROR_500;
        this.message = message;
    }

}
